﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.windows.sun {
    import net.wooga.pets.events.*;
    import net.wooga.pets.models.windows.builders.vo.*;
    import net.wooga.pets.events.windows.*;
    import net.wooga.pets.models.windows.builders.config.autoclose.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.constants.windows.*;

    public class ShowSunWindowCmd extends Command {

        public var event:InfoEvent;

        override public function execute():void{
            var _local1:WindowOptions = new WindowOptions(WindowsType.SUN_SPEECH_WINDOW);
            _local1.disableStage = false;
            if (this.event.info.delay){
                _local1.autoClose = new WindowAutoClose(this.event.info.delay);
                _local1.fadeOutDelay = 500;
            };
            _local1.textValues.body = this.event.info.messageToShowInBubble;
            var _local2:WindowCommandTriggerEvent = new WindowCommandTriggerEvent(WindowCommandTriggerEvent.BUILD_AS_SUN_WINDOW);
            _local2.options = _local1;
            dispatch(_local2);
        }

    }
}//package net.wooga.pets.controllers.windows.sun 
